package com.luanhj.framework.tenant;

/**
 * @author luanhj
 * @date 2025/6/3 10:02
 * @description
 **/
public class TenantContext {
     private static final ThreadLocal<String> CONTEXT = new ThreadLocal<>();
    public static void setTenantId(String id) {
        CONTEXT.set(id);
    }

    public static String getTenantId() {
        return CONTEXT.get();
    }
    public static void clear() {
        CONTEXT.remove();
    }
}
